<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>加密货币开发语言统计分析, Statistical Analysis of Cryptocurrency Development Languages</title>
    <!-- build:css ./css/app.min.css -->
    <link type="text/css" rel="stylesheet" href="../bower_components/bootstrap/dist/css/bootstrap.min.css" />
    <link type="text/css" rel="stylesheet" href="../bower_components/font-awesome/css/font-awesome.min.css" />
    <link type="text/css" rel="stylesheet" href="../public/css/app.css" />
    <!-- /build -->
</head>

<body>
    <nav class="navbar navbar-default">
        <div class="container-fluid">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">加密货币开发语言统计分析</a>
            </div>
            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            </div>
            <!-- /.navbar-collapse -->
        </div>
        <!-- /.container-fluid -->
    </nav>
    <div class="container">
        <div class="row">
            <div class="col-md-2"></div>
            <div class="col-md-8">
                <div class="input-group  input-group-lg">
                    <input id="search-input" type="text" class="form-control" placeholder="Search for...">
                    <span class="input-group-btn">
                    <button id="search-btn" class="btn btn-default" type="button">Go!</button>
                    </span>
                </div>
            </div>
            <div class="col-md-2"></div>
        </div>
        <br/>
        <div class="row">
            <div class="col-md-1"></div>
            <div class="col-md-10">
                <h2 id="testTitle">Top100 Bar Chart</h2>
                <div id="testDesc"></div>
                <div id="testId"></div>
                <br/>
            </div>
            <div class="col-md-1"></div>
        </div>
        <div id="modal" class="overlay">
            loading...
        </div>
    </div>
    <footer class="main-footer" role="contentinfo">
        <div class="container">
            <p>Maintained by <a href="https://github.com/imfly" target="_blank">@imfly</a>
            </p>
            <p>Code licensed <a rel="license" href="https://github.com/twbs/bootstrap/blob/master/LICENSE" target="_blank">MIT</a>, docs <a rel="license" href="https://creativecommons.org/licenses/by/3.0/" target="_blank">CC BY 3.0</a>.</p>
        </div>
    </footer>
    <!-- build:js ./js/app.min.js -->
    <script type="text/javascript" charset="utf-8" src="../bower_components/d3/d3.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="test.js"></script>
    <script type="text/javascript">
    Test.show();

    var inputTxt = d3.select('#search-input'),
        searchBtn = d3.select('#search-btn');

    searchBtn.on('click', function() {
        var dataset = inputTxt.property('value') .split(' ')
        Test.show(dataset);
    })
    </script>
    <!-- /build -->
</body>

</html>
